eFAWATEERcom BANK API
Get Token
URLs :
Description : This service allows the channel or Bank to get new token from efawateercom.
Mulesoft Request:
Mandatory Headers: client_id, x-coorelation-id, Authorization
Optional Headers: client_secret, x-channel-id, x-client-trace-id, x-bank-id,x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id
Request Body: application/json
Field Name | Type | Length | Occurrence | Description |
---|
NA
Mulesoft Response:
Success Response: (200)
Response Body: application/json
Field Name | Type | Length | Occurrence | Description | Validation |
---|---|---|---|---|---|
status | Object | M | |||
success | Boolean | M | true false | ||
code | String | 10 | M | Error Code | “0” incase of success or Error Code |
arabicMessage | String | 200 | M | English message translated to Arabic | تمت العملية بنجاح in case of success or arabic translated error in case of known errors |
englishMessage | String | 200 | M | Description about the processing | “The Operation has been Successfully Completed” Or error Description |
End of status | |||||
response | Object | O | Exists if success = true | ||
tokenDetails | Object | M | |||
token | String | M | |||
expiryDate | String | M | |||
End tokenDetails | |||||
End of Response |
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"tokenDetails": {
"token": "57E87EEFBCFE70E3F9B3C46780739AE0D5506BBE753F59D10736F4FD8C76D90544",
"expiryDate": "2023-09-13T15:35:10"
}
}
}
Sample Error Response:
Error codes :
400:
content-type: JSON
{
"status": {
"success": false,
"code": 400,
"reasonCode": "BadRequest",
"arabicMessage": "",
"englishMessage": ""
}
}